import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './styles/index.scss'

import { createPinia } from 'pinia'
import router from './router'
import './permission'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { myColor } from './directive/color'
import { auth } from './directive/auth'

const app = createApp(App)
// 注册自定义指令 v-my-color="pink"
app.directive('myColor', myColor)
app.directive('auth',auth)
app.use(ElementPlus,{
      // 设置组件库语言包(国际化处理)
    locale:zhCn
})
app.use(ElementPlus)
app.use(createPinia())
app.use(router)


app.mount('#app')